package han.chensing.latos.game.elements.notes;

import com.badlogic.gdx.graphics.g2d.TextureRegion;
import han.chensing.latos.res.Res;

public class DirectFlickNote extends Note{

    protected boolean isFlicked;
    protected int directDistance;

    public DirectFlickNote(Line line) {
        super(line,
                Res.getInstance().get("tapNote",TextureRegion.class),
                NoteType.DirectFlick);
    }

    @Override
    public void finalInit() {
        TextureRegion region =
                Res.getInstance().get("directFlickNote" + (isUp() ? "Up" : "Down"), TextureRegion.class);
        setRegion(region);
        setColor(1, 1, 1, 1);
        setSize(region.getRegionWidth(), region.getRegionHeight());
        setOrigin(getWidth() / 2, getHeight() / 2);
        setAlpha(1);
        setPosition(-getWidth()/2, -getHeight()/2);
        setCenter(0,0);
        setOrigin(0,0);
        setScale(scale);
    }

    public boolean isFlicked() {
        return isFlicked;
    }

    public void setFlicked(boolean flicked) {
        isFlicked = flicked;
    }

    public int getDirectDistance() {
        return directDistance;
    }

    public void setDirectDistance(int directDistance) {
        this.directDistance = directDistance;
    }
}
